package com.yao.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品二级分类表
 * </p>
 *
 * @author author
 * @since 2024-12-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("categorize2")
@ApiModel(value="Categorize2对象", description="商品二级分类表")
public class Categorize2 implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "二级分类id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "二级分类名称")
    private String name;

    @ApiModelProperty(value = "二级分类图片")
    @TableField("imageUrl")
    private String imageUrl;

    @ApiModelProperty(value = "一级分类id")
    @TableField("categorize1")
    private Integer categorize1;

    @TableField("category2Id")
    private Integer category2Id;

    public Categorize2() {
    }


    public Categorize2(Integer id, String name, String imageUrl, Integer categorize1, Integer category2Id) {
        this.id = id;
        this.name = name;
        this.imageUrl = imageUrl;
        this.categorize1 = categorize1;
        this.category2Id = category2Id;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return imageUrl
     */
    public String getImageUrl() {
        return imageUrl;
    }

    /**
     * 设置
     * @param imageUrl
     */
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    /**
     * 获取
     * @return categorize1
     */
    public Integer getCategorize1() {
        return categorize1;
    }

    /**
     * 设置
     * @param categorize1
     */
    public void setCategorize1(Integer categorize1) {
        this.categorize1 = categorize1;
    }

    /**
     * 获取
     * @return category2Id
     */
    public Integer getCategory2Id() {
        return category2Id;
    }

    /**
     * 设置
     * @param category2Id
     */
    public void setCategory2Id(Integer category2Id) {
        this.category2Id = category2Id;
    }

    public String toString() {
        return "Categorize2{serialVersionUID = " + serialVersionUID + ", id = " + id + ", name = " + name + ", imageUrl = " + imageUrl + ", categorize1 = " + categorize1 + ", category2Id = " + category2Id + "}";
    }
}
